package com.plug.common.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Created by slayes on 2017/1/9.
 */
public class Test1 implements Job {
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println(context.getJobDetail().getKey().getName());
    }

    public static void main(String[] args) {
        String s = "er;数据源表名：test,备份表名名：test;本次对比共有：600条数据不一致；";

        System.out.println(s.substring(s.indexOf("有：") + 2,s.indexOf("条数")));
    }

}
